/**
 * @author [siwi]
 * @email [siwi@siwi.me]
 * @create date 2017-11-11 09:25:43
 * @modify date 2017-11-11 09:25:43
 * @desc [接口路由]
*/
const Router = require('koa-router')

const BootApiController = require('../app/controllers/BootApiController')

class Gateway {
    constructor() {
        this.$api = new Router()
        this.routes()
        return this.$api
    }
    async routes() {
        this.$api.post('/api/gateway', BootApiController.gateway)
    } 
}

module.exports = new Gateway()
